package be.rubengerits.android.car.dashboard.pager;

import android.util.SparseArray;

public class HomeCollectionCache extends SparseArray<GenericFragment> {

		public boolean contains(int key) {
		if (this.get(key) != null) {
			return true;
		}

		return false;
	}
	
	public boolean contains(GenericFragment fragment) {
		if (this.indexOfValue(fragment) >= 0) {
			return true;
		}
		
		return false;
	}

}
